package com.xiaochong.tir.common.data.hbasepo;

import java.math.BigDecimal;

/**
 * Created by org on 2018/6/26.
 * 历史交易转成k线数据，记录每分钟的数据
 */
public class TradesToKLine {
   // 顺序timestamp-时间戳、openPrice-开盘价、highestPrice-最高价、lowestPrice-最低价 、closePrice-收盘价、Volume-交易量
    private String timestamp;
    private String openPrice;
    private String highestPrice;
    private String lowestPrice;
    private String closePrice;
    private String Volume;
    private String priceCny;//人民币价格
    private BigDecimal newPriceUsd;//保存美元价格，当前平台币转成美元的最终价格
    private Integer exchangeId;
    private String pair;
    private BigDecimal pingPrice;//平台币价格
    private BigDecimal rmbUsdt;//汇率

    public BigDecimal getPingPrice() {
        return pingPrice;
    }

    public void setPingPrice(BigDecimal pingPrice) {
        this.pingPrice = pingPrice;
    }

    public BigDecimal getRmbUsdt() {
        return rmbUsdt;
    }

    public void setRmbUsdt(BigDecimal rmbUsdt) {
        this.rmbUsdt = rmbUsdt;
    }

    public Integer getExchangeId() {
        return exchangeId;
    }

    public void setExchangeId(Integer exchangeId) {
        this.exchangeId = exchangeId;
    }

    public String getPair() {
        return pair;
    }

    public void setPair(String pair) {
        this.pair = pair;
    }

    public String getPriceCny() {
        return priceCny;
    }

    public void setPriceCny(String priceCny) {
        this.priceCny = priceCny;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(String openPrice) {
        this.openPrice = openPrice;
    }

    public String getHighestPrice() {
        return highestPrice;
    }

    public void setHighestPrice(String highestPrice) {
        this.highestPrice = highestPrice;
    }

    public String getLowestPrice() {
        return lowestPrice;
    }

    public void setLowestPrice(String lowestPrice) {
        this.lowestPrice = lowestPrice;
    }

    public String getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(String closePrice) {
        this.closePrice = closePrice;
    }

    public String getVolume() {
        return Volume;
    }

    public void setVolume(String volume) {
        Volume = volume;
    }

    public BigDecimal getNewPriceUsd() {
        return newPriceUsd;
    }

    public void setNewPriceUsd(BigDecimal newPriceUsd) {
        this.newPriceUsd = newPriceUsd;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"timestamp\":\"")
                .append(timestamp).append('\"');
        sb.append(",\"openPrice\":\"")
                .append(openPrice).append('\"');
        sb.append(",\"highestPrice\":\"")
                .append(highestPrice).append('\"');
        sb.append(",\"lowestPrice\":\"")
                .append(lowestPrice).append('\"');
        sb.append(",\"closePrice\":\"")
                .append(closePrice).append('\"');
        sb.append(",\"Volume\":\"")
                .append(Volume).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
